import json

from config import app_path


def r_json(filename):
    """
    :param filename:读取的文件名
    :return: 返回的是读取数据
    """
    with open(app_path + f"/data/{filename}", "r", encoding="utf-8") as f:
        return json.load(f)